﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - Apps Generator</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="/Home" class="navbar-brand">Apps Generator</a>
            </div>
            <div class="navbar-collapse collapse">
                 <ul class="nav navbar-nav">
                     @if (ViewBag.IsAuthenticated)
                     { 
                        <li>
                            <a href="/CreateApp">Create Application</a>
                        </li>
                        <li>
                            <a href="/MyApps">My Applications</a>
                        </li>
                     }
                </ul>

                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>
    <div class="container body-content" style="margin-top:15px">
        <div class="row">
            <div class="col-md-12">
                @RenderSection("featured", required: false)
                <section class="main-content">
                    @RenderBody()
                </section>
            </div>

            <hr />
            <footer>
                <p class="pull-right"><a href="#" class="btn btn-default">Back to top</a></p>
                <p>&copy; @DateTime.Now.Year - Apps Generator</p>
            </footer>
        </div>
    </div>

    @Scripts.Render("~/Scripts/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>